import { createRouter, createWebHashHistory } from "vue-router";
import routes from "./config.js";

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

router.beforeEach((to, from) => {
  document.title = to.meta.title;
});

export default router;
